'''
    说明：这个文件主要介绍一些python的time和date的处理
'''

import time

'''
    返回unix时间戳

print(time.time())
'''


'''
    计算一段代码运行的时间

def calcProd():
    product = 1
    for i in range(1,100000):
        product = product * i
    return product

startTime = time.time()
prod = calcProd()
endTime = time.time()
print('The result is %s digits long.' %(len(str(prod))))
print('Took %s seconds to calculate.' % (endTime - startTime))
'''


'''
    让程序暂停一会sleep

for i in range(3):
    print('Tick')
    time.sleep(1)
    print('Tock')
    time.sleep(1)
'''









